package com.bwie.es.remote;

import com.bwie.common.domain.Shop;
import com.bwie.common.result.Result;
import com.bwie.es.remote.impl.Fusing;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(name = "bwie-shop",fallbackFactory = Fusing.class)
public interface EsRemote {
    /**
     * 查询店铺
     * @return
     */
    @GetMapping("/queryShop")
    public Result<List<Shop>> queryShop();
}
